LDFLAGS += -pthread `pkg-config --libs glib-2.0 gstreamer-0.10 gstreamer-plugins-base-0.10` -lgstvideo-0.10
CFLAGS += -pthread `pkg-config --cflags glib-2.0 gstreamer-0.10`

all: libgstwarp.so

libgstwarp.so: gstwarp.o
	$(CC) -shared gstwarp.o $(LDFLAGS) -Wl,-soname -Wl,$@ -o $@

%.o: %.c
	$(CC) -c $< $(CFLAGS) -o $@

clean:
	@rm -f *.o *.so
